<template>
    <div class="customSelect">
            <el-select v-model="formData[eleData.key]" :multiple="eleData.multiple">
                <template  v-if="eleData.option">
                    <el-option

                            v-for="item in eleData.option"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                    >
                    </el-option>
                </template>
            </el-select>
    </div>
</template>
<script lang="ts">
    import {defineComponent, ref} from 'vue';

    export default defineComponent({
        name: 'customSelect',
        props:{
            eleData:{
                type:Object
            },
            formData:{
                type: Object
            }
        },
        setup() {
            return {};
        },
    });
</script>
